home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / gg / openssl-bin.lha / ssl / include / openssl / opensslconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-08-08  |  4.7 KB  |  171 lines

  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3.  
  4. /* OpenSSL was configured with the following options: */
  5. #ifdef OPENSSL_ALGORITHM_DEFINES
  6.    /* no ciphers excluded */
  7. #endif
  8. #ifdef OPENSSL_THREAD_DEFINES
  9. # ifndef THREADS
  10. #  define THREADS
  11. # endif
  12. #endif
  13. #ifdef OPENSSL_OTHER_DEFINES
  14. #endif
  15.  
  16. /* crypto/opensslconf.h.in */
  17.  
  18. /* Generate 80386 code? */
  19. #undef I386_ONLY
  20.  
  21. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  22. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  23. #define OPENSSLDIR "/usr/local/ssl"
  24. #endif
  25. #endif
  26.  
  27. #define OPENSSL_UNISTD <unistd.h>
  28.  
  29. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  30. #define IDEA_INT unsigned int
  31. #endif
  32.  
  33. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  34. #define MD2_INT unsigned int
  35. #endif
  36.  
  37. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  38. /* I need to put in a mod for the alpha - eay */
  39. #define RC2_INT unsigned int
  40. #endif
  41.  
  42. #if defined(HEADER_RC4_H)
  43. #if !defined(RC4_INT)
  44. /* using int types make the structure larger but make the code faster
  45.  * on most boxes I have tested - up to %20 faster. */
  46. /*
  47.  * I don't know what does "most" mean, but declaring "int" is a must on:
  48.  * - Intel P6 because partial register stalls are very expensive;
  49.  * - elder Alpha because it lacks byte load/store instructions;
  50.  */
  51. #define RC4_INT unsigned int
  52. #endif
  53. #if !defined(RC4_CHUNK)
  54. /*
  55.  * This enables code handling data aligned at natural CPU word
  56.  * boundary. See crypto/rc4/rc4_enc.c for further details.
  57.  */
  58. #undef RC4_CHUNK
  59. #endif
  60. #endif
  61.  
  62. #if defined(HEADER_DES_H) && !defined(DES_LONG)
  63. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  64.  * %20 speed up (longs are 8 bytes, int's are 4). */
  65. #ifndef DES_LONG
  66. #define DES_LONG unsigned long
  67. #endif
  68. #endif
  69.  
  70. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  71. #define CONFIG_HEADER_BN_H
  72. #define BN_LLONG
  73.  
  74. /* Should we define BN_DIV2W here? */
  75.  
  76. /* Only one for the following should be defined */
  77. /* The prime number generation stuff may not work when
  78.  * EIGHT_BIT but I don't care since I've only used this mode
  79.  * for debuging the bignum libraries */
  80. #undef SIXTY_FOUR_BIT_LONG
  81. #undef SIXTY_FOUR_BIT
  82. #define THIRTY_TWO_BIT
  83. #undef SIXTEEN_BIT
  84. #undef EIGHT_BIT
  85. #endif
  86.  
  87. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  88. #define CONFIG_HEADER_RC4_LOCL_H
  89. /* if this is defined data[i] is used instead of *data, this is a %20
  90.  * speedup on x86 */
  91. #undef RC4_INDEX
  92. #endif
  93.  
  94. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  95. #define CONFIG_HEADER_BF_LOCL_H
  96. #undef BF_PTR
  97. #endif /* HEADER_BF_LOCL_H */
  98.  
  99. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  100. #define CONFIG_HEADER_DES_LOCL_H
  101. #ifndef DES_DEFAULT_OPTIONS
  102. /* the following is tweaked from a config script, that is why it is a
  103.  * protected undef/define */
  104. #ifndef DES_PTR
  105. #undef DES_PTR
  106. #endif
  107.  
  108. /* This helps C compiler generate the correct code for multiple functional
  109.  * units.  It reduces register dependancies at the expense of 2 more
  110.  * registers */
  111. #ifndef DES_RISC1
  112. #undef DES_RISC1
  113. #endif
  114.  
  115. #ifndef DES_RISC2
  116. #undef DES_RISC2
  117. #endif
  118.  
  119. #if defined(DES_RISC1) && defined(DES_RISC2)
  120. YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  121. #endif
  122.  
  123. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  124.  * Very mucy CPU dependant */
  125. #ifndef DES_UNROLL
  126. #undef DES_UNROLL
  127. #endif
  128.  
  129. /* These default values were supplied by
  130.  * Peter Gutman <pgut001@cs.auckland.ac.nz>
  131.  * They are only used if nothing else has been defined */
  132. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  133. /* Special defines which change the way the code is built depending on the
  134.    CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  135.    even newer MIPS CPU's, but at the moment one size fits all for
  136.    optimization options.  Older Sparc's work better with only UNROLL, but
  137.    there's no way to tell at compile time what it is you're running on */
  138.  
  139. #if defined( sun )        /* Newer Sparc's */
  140. #  define DES_PTR
  141. #  define DES_RISC1
  142. #  define DES_UNROLL
  143. #elif defined( __ultrix )    /* Older MIPS */
  144. #  define DES_PTR
  145. #  define DES_RISC2
  146. #  define DES_UNROLL
  147. #elif defined( __osf1__ )    /* Alpha */
  148. #  define DES_PTR
  149. #  define DES_RISC2
  150. #elif defined ( _AIX )        /* RS6000 */
  151.   /* Unknown */
  152. #elif defined( __hpux )        /* HP-PA */
  153.   /* Unknown */
  154. #elif defined( __aux )        /* 68K */
  155.   /* Unknown */
  156. #elif defined( __dgux )        /* 88K (but P6 in latest boxes) */
  157. #  define DES_UNROLL
  158. #elif defined( __sgi )        /* Newer MIPS */
  159. #  define DES_PTR
  160. #  define DES_RISC2
  161. #  define DES_UNROLL
  162. #elif defined( i386 )        /* x86 boxes, should be gcc */
  163. #  define DES_PTR
  164. #  define DES_RISC1
  165. #  define DES_UNROLL
  166. #endif /* Systems-specific speed defines */
  167. #endif
  168.  
  169. #endif /* DES_DEFAULT_OPTIONS */
  170. #endif /* HEADER_DES_LOCL_H */
  171.